package com.opages.mvc.adapter.nacos.serviceregistry;

import com.opages.mvc.adapter.common.client.serviceregistry.AbstractAutoServiceRegistration;
import com.opages.mvc.adapter.common.client.serviceregistry.ServiceRegistry;

public class NacosAutoRegistration extends AbstractAutoServiceRegistration<NacosRegistration> {
    private NacosRegistration nacosRegistration;

    public NacosAutoRegistration(ServiceRegistry<NacosRegistration> serviceRegistry, NacosRegistration nacosRegistration) {
        super(serviceRegistry);
        this.nacosRegistration = nacosRegistration;
    }

    @Override
    protected NacosRegistration getRegistration() {
        return nacosRegistration;
    }
}
